<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ page import="service.template.Charte" %>
<%@ page import="service.template.produit.AffichageCommande" %>
<%@ page import= "bean.commande.Commande" %>
<jsp:useBean id="commandes" scope="request" class="java.util.ArrayList" /> 

	
	<% out.print(Charte.head("Boutique en ligne - Administrateur - Commande ")); %>
	
	<body>
	
		<jsp:include page="../WEB-INF/Chartre/entete.jsp"/>
		
		<jsp:include page="../WEB-INF/Chartre/menuAdmin.jsp"/>
		
		<div id='content'>	
			<div id='contenu'>		
			
			<div id='navigation'>
					<a href='AdminRedirectionMenuAction.do'>Accueil Administration</a>
					<img src="./images/arrow.gif" /> 
					<a href='AdminCommandeAction.do'>Gestion des commandes</a>
			</div>
			
			<h3>Gestion des commandes</h3>				
				<%
				/* PAGINATION */
				int debutListeCommandes = 0;
				int nbCommandes = 20;
				if (request.getParameter("debut") != null && request.getParameter("nb") != null) {
					debutListeCommandes = Integer.parseInt(request.getParameter("debut"));
					nbCommandes = Integer.parseInt(request.getParameter("nb"));
				}

				AffichageCommande.afficheCommandes(out, commandes, debutListeCommandes, nbCommandes); 
				%>
			</div>
		</div>
		
		<% out.print(Charte.footer()); %>

	</body>


</html>